
<div style="margin-bottom:20px;">
  <h3><?php __('Select a Category'); ?></h3>
  <span><?php __('You are posting an ad in ').__($currentCity); ?></span>
</div>
<div>
<?php foreach ($categories as $main=>$subcategories) { ?>
   <div class="dl" style="width:33%">
     <span class="mainCategory"><?php __($main); ?></span>
     <ul>
<?php    foreach ($subcategories as $id=>$category) { ?>
       <li>
         <?php echo $html->link(__($category,true), array('controller'=>'adPosts', 'action'=>'add', $id)); ?>
       </li>
<?php    } ?>
     </ul>
   </div>
<?php } ?>
   <div class="clear"></div>
</div>